Fix error on running test, needs more work