changed main to a test