tests for app factory
finish tests for app factory