added spec tests.