Added full test suite and finalised v0.5