refactored testing, has profiling now
move testing.py out of directory as it's a single file now