Parse test spec

Added some tests