moved test app code