adds better tests for prototype