Code runs, tests fail