added specs for registration.js