Misplaced the order of the code. Quick fix for the test code.