fix enable_if example
add some tests for the client building