If done that way round when seated you would be testing the quads. They would need to resist you straightening the leg to work the Hamstrings i.e pulling into flexion. Both are correct ways of testing the muscles though. I would normally choose to have them lying prone as I find I can test them more easily through the whole range.