add unit tests for stories