fixed bug with multiple definitions testing