Add function tests. Remove useless assets.