Moved tests to seperate file.