Added a missing test for StepDefinition
Minor refactor
Added missing unit tests for Library