Adding missing code to test