Extract tests to separate scripts