fixed compile exceptions - stackoverflow in test