removed test code from constructor