added test according specification
implemented features according spec v 1.0