Fixed code style
Added spec for client default case