Wrote simple Spec suite for this problem

Use spec2 when writing tests.
Added all combinations of different class declarations to test/resources.