Added minimal unit tests for user spec.