creating main and test