moved tests to seperate file