added testcase for specification handling and adjusted concerned methods