Fixed bootstrap
Removed condition if $criteria is string
Removed test case when $criteria is string
Removed data type in mapping
Added realpath function
Fixed test cases