split up tests and moved into tests folder