[REQS-490] Added unit tests and argument checkers.