add WhileLoop test to common makefile
move TestPlatform to proper directory