More specific assertions in test cases

corrected order to pass tests
moved before_script to top

added script