added specs for newly added code