Inproves tests
Improves tests using shared_examples_for
Improves tests with helper test