Added a main() for test-file