Add implementation of managed beans

Add test