Various fixes

Fixed unit test CI scripts.
Fixed NSDate usage.

Adopted Segue category from mainstream.