Refactored tests into test files

Each test has a txt file and an expected file (except "fails")