added check and rejection of empty object in Bugle.extend, added jasmine suite