Add specs for pre script class

Basic coverage and use Coveralls