worked out bugs by adding a single test