Adds validation to "getElapsedTime()"

* Adds validation to "getElapsedTime()" to make sure that proper value
is returned
* Adds Unit Tests for "getElapsedTime()"