cleaning
ADD assert_status_code and tests
CHG refactor some tests using tests methods
CHG encapsulate code to evaluate in a subshell
    so that test runner does not terminate
    abruptedly.