Nit: move key filter tests to separate file.
Added instance check for bucket_type argument to initializer.