add more testcases for the spec helper and further abstract the spec tests