Adding test code