Added missing test code